package com.mapgis

import com.mapgis.service.LogToOracleService



object DataxLogToOracle {


    /**
      * 参数的顺序
      *     任务名称、dataX开始时间、dataX结束时间、dataX同步状态、dataX同步日志、dataX同步数量
      * @param args
      */
    def main(args: Array[String]): Unit = {
        println("进来了没？111 ---")
        print(s"${args(0)},--${args(1)},--${args(2)},--${args(3)},--${args(4)},--${args(5)}")
        val jobName = args(0)
        val starttime = args(1)
        val endTime = args(2)
        val syncStatus = args(3)
        val dataxSyncLogPath = args(4)
        val dataxSyncNum = args(5)

        LogToOracleService.dataxLogToOracle(jobName,starttime,endTime,syncStatus,dataxSyncLogPath,dataxSyncNum)
   }

}
